package com.pwrd.sframe.core;

import com.pwrd.sframe.core.interfaces.ISerilizable;

/**
 * 调用请求类
 * @Auther syc.
 * @Date 2017/1/22 18:06.
 */
public class Call implements ISerilizable {

    public CallInfo fromPoint;
    public CallInfo toPoint;
    public String methodKey;
    public Object[] params;
    public boolean copy; //true:值传递; false:引用传递

    public Call(boolean copy, CallInfo fromPoint, CallInfo toPoint, String methodKey, Object[] params) {
        this.copy = copy;
        this.fromPoint = fromPoint;
        this.toPoint = toPoint;
        this.methodKey = methodKey;
        this.params = params;
    }

    private Call() {

    }


    @Override
    public void write() {

    }

    @Override
    public void read() {

    }

    //TODO
    public Call deepCall() {
        Call result = new Call();

        return result;
    }
}
